import { axios } from '@/utils/request'

const api = {
  apiLogin: '/user/login',
  apiRegister: '/user/register',
  apiVerifyLogin: '/user/verifyLogin',
}
export default api

export function apiLogin(parameter) {
  return axios({
    url: api.apiLogin,
    method: 'post',
    data: parameter
  })
}

export function apiRegister(parameter) {
  return axios({
    url: api.apiRegister,
    method: 'post',
    data: parameter
  })
}

export function apiVerifyLogin() {
  return axios({
    url: api.apiVerifyLogin,
    method: 'get'
  })
}
